package com.cray.intelligenthydrologyback.client.domain.entity;

import com.cray.intelligenthydrologyback.client.model.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 北斗消息对象 bd_device_message
 */
@Data
public class BdDeviceMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识 */
    private Long id;

    /** 消息类型（参考bd_message_type字典） */
    private String msgType;

    /** 消息内容 */
    private String msgContent;

    /** 发送状态（N,Y）； */
    private String sendStatus;

    /** 删除标志（N代表存在 Y代表删除） */
    private String delFlag;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("msgType", getMsgType())
            .append("msgContent", getMsgContent())
            .append("sendStatus", getSendStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
